package org.crazyit.activiti_d2._3_OtherDatasourceField;

import org.activiti.engine.ProcessEngineConfiguration;

public class OtherDataSource {

    public static void main(String[] args) {

        //1. 获取默认Standalone 流程引擎配置实例
        ProcessEngineConfiguration config = ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration();

        //2. 获取默认数据库连接池内最大的活跃连接数, 默认值为10
        System.out.println("config.getJdbcMaxActiveConnections() = " + config.getJdbcMaxActiveConnections());

        //3. 获取默认数据库连接池最大的空闲连接数
        System.out.println("config.getJdbcMaxIdleConnections() = " + config.getJdbcMaxIdleConnections());

        //4. 获取默认数据库连接池连接耗尽时向外界连接池请求连接的等待时间, 默认为20000, 即20s
        System.out.println("config.getJdbcMaxCheckoutTime() = " + config.getJdbcMaxCheckoutTime());

        //5. 获取默认数据库连接当整个连接池需要重新获取连接时的等待时间, 默认为20000, 即20s
        System.out.println("config.getJdbcMaxWaitTime() = " + config.getJdbcMaxWaitTime());

    }

}
